package com.inspur.cloud.service.ambari;

import com.inspur.cloud.dao.ambari.HostsDao;
import com.inspur.cloud.entity.ambari.HostsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HostsService {
    @Autowired
    private HostsDao hostsDao;

    public HostsEntity findByhostId(Integer id) {
        return hostsDao.findByhostId(id);
    }

    public List<HostsEntity> findAll() {
        return hostsDao.findAll();
    }
}
